package com.jiuqi.irs.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="TB_Receipt"
 *     
*/
public class TbReceipt implements Serializable {

   
    private String receiptGuid;
    
    private String proofId;
    
    private String orgGuid;
   
    private String billNumber;
    
    private String billNumber2;

    private String subCardNo;

    private String itemCard;
    
    private BigDecimal cutSum;
    
    private String paymentUnit;
    
    private String paymentAccount;
    
    private BigDecimal hjSum;
    
    private BigDecimal gatherSum;
    
    private String year;
    
    private String receiptState;
    
    private String receiptTime;
   
    private String applyCreatTime;
    
    private String applyLastTime;
    
    private String reserved1;
   
    private String reserved2;
   
    private String reserved3;
    
    

	public String getProofId() {
		return proofId;
	}



	public void setProofId(String proofId) {
		this.proofId = proofId;
	}



	public String getBillNumber2() {
		return billNumber2;
	}



	public void setBillNumber2(String billNumber2) {
		this.billNumber2 = billNumber2;
	}



	public BigDecimal getHjSum() {
		return hjSum;
	}



	public void setHjSum(BigDecimal hjSum) {
		this.hjSum = hjSum;
	}



	public String getOrgGuid() {
		return orgGuid;
	}



	public void setOrgGuid(String orgGuid) {
		this.orgGuid = orgGuid;
	}



	public String getReceiptGuid() {
		return receiptGuid;
	}



	public void setReceiptGuid(String receiptGuid) {
		this.receiptGuid = receiptGuid;
	}



	public String getBillNumber() {
		return billNumber;
	}



	public void setBillNumber(String billNumber) {
		this.billNumber = billNumber;
	}



	public String getSubCardNo() {
		return subCardNo;
	}



	public void setSubCardNo(String subCardNo) {
		this.subCardNo = subCardNo;
	}



	public String getItemCard() {
		return itemCard;
	}



	public void setItemCard(String itemCard) {
		this.itemCard = itemCard;
	}



	public BigDecimal getCutSum() {
		return cutSum;
	}



	public void setCutSum(BigDecimal cutSum) {
		this.cutSum = cutSum;
	}



	public String getPaymentUnit() {
		return paymentUnit;
	}



	public void setPaymentUnit(String paymentUnit) {
		this.paymentUnit = paymentUnit;
	}



	public String getPaymentAccount() {
		return paymentAccount;
	}



	public void setPaymentAccount(String paymentAccount) {
		this.paymentAccount = paymentAccount;
	}



	public BigDecimal getGatherSum() {
		return gatherSum;
	}



	public void setGatherSum(BigDecimal gatherSum) {
		this.gatherSum = gatherSum;
	}



	public String getYear() {
		return year;
	}



	public void setYear(String year) {
		this.year = year;
	}



	public String getReceiptState() {
		return receiptState;
	}



	public void setReceiptState(String receiptState) {
		this.receiptState = receiptState;
	}



	public String getReceiptTime() {
		return receiptTime;
	}



	public void setReceiptTime(String receiptTime) {
		this.receiptTime = receiptTime;
	}



	public String getApplyCreatTime() {
		return applyCreatTime;
	}



	public void setApplyCreatTime(String applyCreatTime) {
		this.applyCreatTime = applyCreatTime;
	}



	public String getApplyLastTime() {
		return applyLastTime;
	}



	public void setApplyLastTime(String applyLastTime) {
		this.applyLastTime = applyLastTime;
	}



	public String getReserved1() {
		return reserved1;
	}



	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}



	public String getReserved2() {
		return reserved2;
	}



	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}



	public String getReserved3() {
		return reserved3;
	}



	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}



	public TbReceipt(String receiptGuid,String proofId,String orgGuid, String billNumber,String billNumber2,String subCardNo, String itemCard, BigDecimal cutSum, String paymentUnit, String paymentAccount, BigDecimal hjSum,BigDecimal gatherSum, String year, String receiptState, String receiptTime,String applyCreatTime,String applyLastTime, String reserved1, String reserved2, String reserved3) {
	    	this.receiptGuid = receiptGuid;
	    	this.proofId = proofId;
	    	this.orgGuid = orgGuid;
	        this.billNumber = billNumber;
	        this.billNumber2 = billNumber2;
	        this.hjSum = hjSum;
	        this.subCardNo = subCardNo;
	        this.itemCard = itemCard;
	        this.cutSum = cutSum;
	        this.paymentUnit = paymentUnit;
	        this.paymentAccount = paymentAccount;
	        this.gatherSum = gatherSum;
	        this.year = year;
	        this.receiptState = receiptState;
	        this.receiptTime = receiptTime;
	        this.applyCreatTime = applyCreatTime;
	        this.applyLastTime = applyLastTime;
	        this.reserved1 = reserved1;
	        this.reserved2 = reserved2;
	        this.reserved3 = reserved3;
	    }



	public TbReceipt() {
    }

    
    public TbReceipt(String receiptGuid) {
        this.receiptGuid = receiptGuid;
       
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("receiptGuid", getReceiptGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof TbReceipt) ) return false;
        TbReceipt castOther = (TbReceipt) other;
        return new EqualsBuilder()
            .append(this.getReceiptGuid(), castOther.getReceiptGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getReceiptGuid())
            .toHashCode();
    }
}
